package com.jwt.vpower.model
{
	import flash.external.ExternalInterface;
	/*
	Google Analytics in Flash (the easy way)
	http://cookbooks.adobe.com/post_How_to_use_Google_Analytics_in_Flash_the_easy_way_-18254.html
		put this into the html page
	<script type="text/javascript">
	
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'ACCOUNT-ID']);
	_gaq.push(['_setDomainName', 'YOUR-DOMAIN']);
	_gaq.push(['_trackPageview']);
	
	(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = 'http://www.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
	
	function track(trackName){_gaq.push(['_trackPageview', trackName]);}
	function trackEvent(cat,act,id){_gaq.push(['_trackEvent', cat,act]);}
	
	</script>
	*/
	public class Tracking
	{
		public static function TrackRoom($room:String):void{
			trace("Track room "  + $room);
		}
		
		public static function TrackPage($page:String):void{
			trace("track page " + $page);
			// if( ExternalInterface.available) ExternalInterface.call("track",$page );

		}
		
		public static function TrackEvent($cat:String,$action:String):void{
			//if( ExternalInterface.available) ExternalInterface.call("trackEvent",$cat , $action );

		}
	}
}